package at.ac.tuwien.swa075.telco.smsc.service;

import java.sql.Timestamp;

import at.ac.tuwien.swa075.telco.smsc.service.sdo.IMessageSDO;


/**
 * @author vovmj01
 *
 */
public class ShortMessageServiceCenter implements IShortMessageServiceCenter {
	
	/* (non-Javadoc)
	 * @see at.ac.tuwien.swa075.telco.smsc.service.IShortMessageServiceCenter#storeMessage(at.ac.tuwien.swa075.telco.smsc.service.sdo.IMessageSDO)
	 */
	public void storeMessage(IMessageSDO message) throws SmscException {
		// store the message in the database
	}
	
	/* (non-Javadoc)
	 * @see at.ac.tuwien.swa075.telco.smsc.service.IShortMessageServiceCenter#updateMessageStatus(java.lang.String, java.lang.String)
	 */
	public void updateMessageStatus(String messageId, String status) throws SmscException {
		// Look up the message
		// set the status
		// store the message
	}

	/* (non-Javadoc)
	 * @see at.ac.tuwien.swa075.telco.smsc.service.IShortMessageServiceCenter#processUndeliveredMessages()
	 */
	public IMessageSDO[] processUndeliveredMessages() throws SmscException {
		// find all messages that are not billed 
		return null;		
	}
	
	/* (non-Javadoc)
	 * @see at.ac.tuwien.swa075.telco.smsc.service.IShortMessageServiceCenter#processBilledMessages(java.sql.Timestamp, java.sql.Timestamp)
	 */
	public int processBilledMessages(Timestamp from, Timestamp to) throws SmscException {
		
		// TODO: Implementation
		return 0;
	}
}
